/**
 created by xwy 2018/4/24 15:07
 user: 13720092498@163.com
 **/

const mysql = require('mysql')
module.exports = (sql, callback) => {
  const db = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    password: 'xu19951001',
    database: 'xsspt'
  })
  db.connect()
  db.query(sql, callback)
  db.end()
}
